projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
954552a
)
Improve focus handling in the print dialog
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 8 Apr 2009 03:51:52 +0000
(23:51 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 8 Apr 2009 03:51:52 +0000
(23:51 -0400)
Move the focus to the range entry when selecting the "Pages".
gtk/gtkprintunixdialog.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprintunixdialog.c
b/gtk/gtkprintunixdialog.c
index 21c1efed69c4a3fc64492cb7d8e0f7edddafab70..e88852e4564494af81ab8fce2b8d28b13ecfd4e9 100644
(file)
--- a/
gtk/gtkprintunixdialog.c
+++ b/
gtk/gtkprintunixdialog.c
@@
-1695,6
+1695,9
@@
update_range_sensitivity (GtkWidget *button,
active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
gtk_widget_set_sensitive (range, active);
+
+ if (active)
+ gtk_widget_grab_focus (range);
}
static void